﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<script>
    $(function () {
        initControl();
        gridList();
    });
    function initControl() {
        var myLayout = $('#layout').layout({ resizable: false });
        $('select').bindSelect();
    }
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            //url: "/SystemManage/User/GetGridJson",
            height: 300,
            colModel: [
                { label: '容器编号', name: '', width: 80, align: 'center' },
                { label: '容器名称', name: '', width: 80, align: 'center' }
            ],
            //pager: "#gridPager",
            sortname: 'F_DepartmentId asc,F_CreatorTime desc',
            viewrecords: true
        });
    }
    function btn_ok() {
        parent.$.detailClose();
    }
    function btn_cancel() {
        parent.$.detailClose();
    }
</script>
<div class="ui-layout" id="layout" style="height: 100%; width: 100%;">
    <div class="ui-layout-center">
        <form id="form1">
            <div style="padding: 5px 0; padding-left:15px; margin-right: 30px;" class="line-table input-width-105">
                <label class="prefix">容器编号</label>
                <select id="" name="" class="form-control"></select>
                &nbsp;
                <div class="btn-group" style="margin-top:-1px;">
                    <a id="" class="btn btn-primary center-block btn-1" onclick="btn_ok()"><span class="glyphicon glyphicon-ok"></span> 输入</a>
                </div>
            </div>
        </form>
        <div style="border-bottom: 1px solid #ccc;">
            <table id="gridList"></table>
        </div>
        <div style="padding: 5px 0; padding-left:15px; margin-right: 30px;" class="line-table">
            <div style="text-align:right;padding-right:30px;padding-top:10px;">
                <div class="btn-group" style="margin-right:20px;">
                    <a id="" class="btn btn-primary center-block" onclick="btn_cancel()"><span class="glyphicon glyphicon-trash"></span> 删除</a>
                </div>
                <div class="btn-group" style="margin-right:20px;">
                    <a id="" class="btn btn-primary center-block" onclick="btn_ok()"><span class="glyphicon glyphicon-ok"></span> 确认</a>
                </div>
                <div class="btn-group">
                    <a id="" class="btn btn-primary center-block" onclick="btn_cancel()"><span class="glyphicon glyphicon-remove"></span> 取消</a>
                </div>
            </div>
        </div>
    </div>

</div>

